package com.mall.user.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuyijie
 * @since 2021-06-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Role对象", description="")
public class Role extends Model {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色主键")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "角色")
    @TableField("ROLE")
    private String role;

    @ApiModelProperty(value = "角色描述")
    @TableField("DESCRIPTION")
    private String description;


}
